package com.xique.common.core.constant;

/**
 * 缓存的key 常量
 *
 * @author xique
 */
public class CacheConstants {

    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_BASE_USER_ID = "base_user_id";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 项目ID字段
     */
    public static final String DETAILS_PARK_ID = "park_id";

    /**
     * 岗亭ID字段
     */
    public static final String DETAILS_CLIENT_ID = "client_id";

    /**
     * 登录信息日志ID字段
     */
    public static final String DETAILS_LOGIN_INFO_ID = "login_info_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 用户类型
     */
    public static final String DETAILS_USER_TYPE = "user_type";

    /**
     * 平台来源类型
     */
    public static final String DETAILS_PLATFORM_TYPE = "platform";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 三方授权id
     */
    public static final String APP_ID = "app_id";

    /**
     * 三方绑定服务商id
     */
    public static final String FOREIGN_ID = "foreign_id";

    /**
     * 三方绑定服务商类型
     */
    public static final String FOREIGN_TYPE = "foreign_type";

    /**
     * 三方绑定服务商名称
     */
    public static final String FOREIGN_NAME = "foreign_name";

    /**
     * 地区信息redis key
     */
    public static final String AREA_KEY = "area";

    /**
     * 公众号openid
     */
    public static final String OPEN_ID = "open_id";

    /**
     * 智慧停车小程序union_id
     */
    public static final String UNION_ID = "union_id";
    /**
     * APP类型
     */
    public static final String APP_TYPE = "app_type";

    public static final String ZFB_USER_ID = "zfb_user_id";

    public static final String UPGRADING = "upgrading:";

}
